-
Notifications
You must be signed in to change notification settings - Fork 240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Correct issue introduced in commit ee6a4f5 (related to #343) #344
base: master
Are you sure you want to change the base?
Conversation
This repo's standards need to be increased. This PR should have failed via an automated test. Tons of action's users just wasted time on this mistake. |
@@ -195,7 +195,7 @@ if [ "${format}" == "sarif" ] && [ "${limitSeveritiesForSARIF}" != "true" ]; the | |||
trivy --quiet ${scanType} --format sarif --output ${output} $SARIF_ARGS ${artifactRef} | |||
elif [ $trivyConfig ]; then | |||
echo "Running Trivy with trivy.yaml config from: " $trivyConfig | |||
trivy --config $trivyConfig ${scanType} ${ARGS}" ${artifactRef} | |||
trivy --config $trivyConfig ${scanType} ${ARGS} ${artifactRef} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While we're at it, it'd be nice to meet conventions.
trivy --config $trivyConfig ${scanType} ${ARGS} ${artifactRef} | |
echo "Running Trivy with trivy.yaml config from: ${trivyConfig}" | |
trivy --config "${trivyConfig}" "${scanType}" "${ARGS}" "${artifactRef}" |
FYI
https://google.github.io/styleguide/shellguide.html#s5.6-variable-expansion
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be "${trivyConfig}" "${scanType}" "${ARGS}" "${artifactRef}"
unless ARGS really needs to be unquoted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed
@nicolargo I think you need to sign the CLA |
I do... |
Remove the " typo.